var express = require('express');
var router = express.Router();
const upload=require('../controller/upload')
const mailer=require('../controller/mailer')
/* GET users listing. */
router.post('/us',(req,res) => {
    res.send('Welcome')
})
router.get('/mail',(req,res) => {
    mailer(req.query.mail,req.query.context,()=>{
        console.log("邮件发送成功")
    })
    res.send("接收到了信息呢")
})
module.exports = router;
